package br.com.stefanini.provajava.model.service;

import java.util.List;

import br.com.stefanini.provajava.model.Experiencia;
import br.com.stefanini.provajava.model.Profissional;
import br.com.stefanini.provajava.model.dao.ExperienciaDAO;
import br.com.stefanini.provajava.model.dao.ProfissionalDAO;

public class ProfissionalService {

	private ProfissionalDAO profissionalDAO;
	private ExperienciaDAO experienciaDAO;

	public void addProfissional(Profissional profissional) {
		profissionalDAO.addProfissional(profissional);
	}

	public void deleteProfissional(Integer idProfissional) {
		profissionalDAO.deleteProfissional(idProfissional);
	}

	public void updateProfissional(Profissional profissional) {
		profissionalDAO.updateProfissional(profissional);
	}

	public List<Profissional> getAllProfissionais() {
		return profissionalDAO.getAllProfissionais();
	}

	public Profissional getProfissionalById(Integer idProfissional) {
		return profissionalDAO.getProfissionalById(idProfissional);
	}

	public void addExperiencia(Integer idProfissional, Experiencia experiencia) {
		experienciaDAO.addExperiencia(idProfissional, experiencia);
	}

	public void deleteExperiencia(Integer idExperiencia) {
		experienciaDAO.deleteExperiencia(idExperiencia);
	}

}
